package cn.factorybox.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-04-20 8:44
 */
public class SystemLog {

    private String id;      // 主键id

    private String fUserName;       //操作者的账号名称

    private String fUserId;      //用户id

    private Integer fLogLevel;       //日志等级

    private String fOperationType;  //操作类型

    private String fOperationUnit;  // 操作模块名称

    private String fLogDescribe;    // 用户操作描述

    private String fUserIp;         // 用户登录时的ip地址

    private String fLocation;       // 用户登录时的真实地址

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date fOperationTime;    //用户操作时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getfUserName() {
        return fUserName;
    }

    public void setfUserName(String fUserName) {
        this.fUserName = fUserName;
    }

    public Integer getfLogLevel() {
        return fLogLevel;
    }

    public void setfLogLevel(Integer fLogLevel) {
        this.fLogLevel = fLogLevel;
    }

    public String getfOperationType() {
        return fOperationType;
    }

    public void setfOperationType(String fOperationType) {
        this.fOperationType = fOperationType;
    }

    public String getfLogDescribe() {
        return fLogDescribe;
    }

    public void setfLogDescribe(String fLogDescribe) {
        this.fLogDescribe = fLogDescribe;
    }

    public String getfUserIp() {
        return fUserIp;
    }

    public void setfUserIp(String fUserIp) {
        this.fUserIp = fUserIp;
    }

    public Date getfOperationTime() {
        return fOperationTime;
    }

    public void setfOperationTime(Date fOperationTime) {
        this.fOperationTime = fOperationTime;
    }

    public String getfUserId() {
        return fUserId;
    }

    public void setfUserId(String fUserId) {
        this.fUserId = fUserId;
    }

    public String getfOperationUnit() {
        return fOperationUnit;
    }

    public void setfOperationUnit(String fOperationUnit) {
        this.fOperationUnit = fOperationUnit;
    }

    public String getfLocation() {
        return fLocation;
    }

    public void setfLocation(String fLocation) {
        this.fLocation = fLocation;
    }

    @Override
    public String toString() {
        return "SystemLog{" +
                "id='" + id + '\'' +
                ", fUserName='" + fUserName + '\'' +
                ", fUserId='" + fUserId + '\'' +
                ", fLogLevel=" + fLogLevel +
                ", fOperationType='" + fOperationType + '\'' +
                ", fOperationUnit='" + fOperationUnit + '\'' +
                ", fLogDescribe='" + fLogDescribe + '\'' +
                ", fUserIp='" + fUserIp + '\'' +
                ", fLocation='" + fLocation + '\'' +
                ", fOperationTime=" + fOperationTime +
                '}';
    }
}
